using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

/// <summary>
/// 修复ListView把cell回池时scale设置为0,但是scrollRect没有判断,导致ScrollRect列表一直滚动的错误
/// </summary>
public class FixedScaleScrollRect : ScrollRect
{
    protected override void LateUpdate()
    {
        if (transform.lossyScale.x == 0 || transform.lossyScale.y == 0)
            return;
        base.LateUpdate();
    }
}

